home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / csim / source.lha / source / C++SIM / Element.n < prev    next >
Text File  |  1993-06-14  |  424b  |  37 lines

  1. /*
  2.  * Copyright (C) 1993
  3.  *
  4.  * Department of Computing Science,
  5.  * The University,
  6.  * Newcastle upon Tyne,
  7.  * UK.
  8.  */
  9.  
  10.  
  11. #if defined(NO_INLINES) && !defined(ELEMENT_CC_)
  12.  
  13. #else
  14.  
  15. #ifndef NO_INLINES
  16. #  define INLINEF inline
  17. #else
  18. #  define INLINEF
  19. #endif
  20.  
  21. INLINEF long Element::GetValue () const
  22. {
  23.     return value;
  24. }
  25.  
  26. INLINEF void Element::SetValue (long x)
  27. {
  28.     value = x;
  29. }
  30.  
  31.  
  32. #ifdef INLINEF
  33. #  undef INLINEF
  34. #endif
  35.  
  36. #endif
  37.